﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ShaboForm
{
    public partial class AdminisrationsForm : Form
    {
        public AdminisrationsForm()
        {
            InitializeComponent();
            this.FormClosing += Form1_Exit;
        }

        private void button1_Click(object sender, EventArgs e)
        {

            Workers wrks = new Workers();
            wrks.Show();
            this.Dispose();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            WorkerRegistry wrks = new WorkerRegistry();
            wrks.Show();
            this.Dispose();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
        }
        private void Form1_Exit(object sender, EventArgs e)
        {
            this.Dispose();
            Login.form1.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Dispose();
            Login.form1.Show();
        }
    }
}
